import { Global, Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { ConfigController } from './controllers/config.controller'
import { ConfigService } from './services/config.service'
import { ConfigEntity } from './entities/config.entity'
import { SystemConfigUtil } from 'src/shared/utils/system-config'

@Global()
@Module({
  imports: [TypeOrmModule.forFeature([ConfigEntity])],
  controllers: [ConfigController],
  providers: [ConfigService, SystemConfigUtil],
  exports: [ConfigService, SystemConfigUtil],
})
export class ConfigModule {}
